package com.dy.design_pattern_study.agent_factory.dome1.impl;

import com.dy.design_pattern_study.agent_factory.dome1.IGiveGift;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-03-20
 * @Content 追求者类
 */
public class Pursuit implements IGiveGift {
    SchoolGirl mm;

    public Pursuit(SchoolGirl mm) {
        this.mm = mm;
    }

    @Override
    public void GiveDolls() {
        System.out.println(mm.getName() + " 送你洋娃娃");
    }

    @Override
    public void GiveFlowers() {
        System.out.println(mm.getName() + " 送你鲜花");
    }

    @Override
    public void GiveChocolate() {
        System.out.println(mm.getName() + " 送你巧克力");
    }
}
